home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / scripts / gfx.shader < prev    next >
Encoding:
Text File  |  2000-11-22  |  25.0 KB  |  1,498 lines

  1. // GFX.SHADER
  2. // 
  3. // this file contains shaders that are used by the programmers to
  4. // generate special effects not attached to specific geometry.  This
  5. // also has 2D shaders such as fonts, etc.
  6. //
  7.  
  8. // the REGION shader is generated by the map editor on temporary
  9. // brushes around a selected area for testing parts of maps
  10. textures/REGION
  11. {
  12.     surfaceparm nolightmap
  13. }
  14.  
  15. // the background for the netgraph
  16. lagometer
  17. {
  18.     nopicmip
  19.     {
  20.         map gfx/2d/lag.tga
  21.     }
  22. }
  23.  
  24. // blinked on top of lagometer when connection is interrupted
  25. disconnected
  26. {
  27.     nopicmip
  28.     {
  29.         map gfx/2d/net.tga
  30.     }
  31. }
  32.  
  33. white
  34. {
  35.     {
  36.         map *white
  37.         blendfunc    GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  38.         rgbgen vertex
  39.     }
  40. }
  41.  
  42. console
  43. {
  44.     nopicmip
  45.     nomipmaps
  46.     
  47.         {
  48.         map gfx/misc/console01.tga
  49.                 blendFunc GL_ONE GL_ZERO
  50.                 tcMod scroll .02  0
  51.                 tcmod scale 2 1
  52.     }
  53.         {
  54.                 map gfx/misc/console02.tga
  55.                 //map textures/sfx/firegorre3.tga
  56.                 blendFunc add
  57.                 tcMod turb 0 .1 0 .1
  58.                 tcMod scale 2 1
  59.                 tcmod scroll 0.2  .1
  60.     } 
  61.  
  62. }
  63.  
  64. menuback
  65. {
  66.     nopicmip
  67.     nomipmaps
  68.         //{
  69.         //        map textures/sfx/logo512.tga
  70.         //}
  71.  
  72.         //{
  73.         //        map textures/sfx/specular.tga
  74.          //       //blendfunc add
  75.         //        tcMod turb 0 .8 0 .2
  76.         //        tcmod scroll -.1  -.2
  77.     //} 
  78.          {
  79.                 map textures/sfx/logo512.tga
  80.                 // blendFunc blend
  81.                 rgbgen identity
  82.         }
  83.         //{
  84.     //    map textures/sfx/proto_zzzdrk.tga
  85.         //        blendFunc add
  86.         //        tcMod turb 0 .1 0 .9
  87.         //         tcmod scale .2 .2
  88.         //         tcMod scroll .02  0.7
  89.         //         rgbgen identity
  90.     //} 
  91.         
  92. }
  93. menubacknologo
  94. {
  95.     nopicmip
  96.     nomipmaps
  97.        
  98.         {
  99.                map gfx/colors/black.tga
  100.            //map textures/sfx/proto_zzzdrk.tga
  101.                // tcMod turb 0 .1 0 .9
  102.                // tcmod scale .2 .2
  103.                // tcMod scroll .02  0.7
  104.     } 
  105.         
  106. }
  107.  
  108. menubackRagePro    // blends turn to shit on rage pro, so skip it
  109. {
  110.     nopicmip
  111.     nomipmaps
  112.         {
  113.                 map textures/sfx/logo512.tga
  114.         }
  115.         
  116. }
  117.  
  118.  
  119. levelShotDetail
  120. // used to break up the blur on levelshots
  121. {
  122.     nopicmip
  123.     {
  124.         map textures/sfx2/detail2.tga
  125.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  126.         rgbgen identity
  127.     }
  128. }
  129.  
  130. //
  131. // special effects as seen on players
  132. //
  133. powerups/battleSuit
  134. {
  135.     deformVertexes wave 100 sin 1 0 0 0
  136.     {
  137.         map textures/effects/envmapgold2.tga
  138.                 //map textures/sfx/specular.tga
  139.         tcGen environment
  140.         tcMod turb 0 0.15 0 0.3
  141.                 tcmod rotate 333
  142.                 tcmod scroll .3 .3
  143.         blendfunc GL_ONE GL_ONE
  144.     }
  145. }
  146. powerups/battleWeapon
  147. {
  148.     deformVertexes wave 100 sin 0.5 0 0 0
  149.     {
  150.         map textures/effects/envmapgold2.tga
  151.                 //map textures/sfx/specular.tga
  152.         tcGen environment
  153.         tcMod turb 0 0.15 0 0.3
  154.                 tcmod rotate 333
  155.                 tcmod scroll .3 .3
  156.         blendfunc GL_ONE GL_ONE
  157.     }
  158. }
  159.  
  160. powerups/invisibility
  161. {
  162.     {
  163.         map textures/effects/invismap.tga
  164.                 //map textures/sfx/specular.tga
  165.         blendfunc GL_ONE GL_ONE
  166.         tcMod turb 0 0.15 0 0.25
  167.         tcGen environment
  168.     }
  169. }
  170. powerups/quad
  171. {
  172.     deformVertexes wave 100 sin 3 0 0 0
  173.     {
  174.         map textures/effects/quadmap2.tga
  175.         blendfunc GL_ONE GL_ONE
  176.         tcGen environment
  177.                 tcmod rotate 30
  178.         //tcMod turb 0 0.2 0 .2
  179.                 tcmod scroll 1 .1
  180.     }
  181. }
  182. powerups/quadWeapon
  183. {
  184.     deformVertexes wave 100 sin 0.5 0 0 0
  185.     {
  186.         map textures/effects/quadmap2.tga
  187.         blendfunc GL_ONE GL_ONE
  188.         tcGen environment
  189.                 tcmod rotate 30
  190.         //tcMod turb 0 0.2 0 .2
  191.                 tcmod scroll 1 .1
  192.     }
  193. }
  194. powerups/regen
  195. {
  196.     deformVertexes wave 100 sin 3 0 0 0
  197.     {
  198.         map textures/effects/regenmap2.tga
  199.         blendfunc GL_ONE GL_ONE
  200.         tcGen environment
  201.                 tcmod rotate 30
  202.         //tcMod turb 0 0.2 0 .2
  203.                 tcmod scroll 1 .1
  204.     }
  205. }
  206.  
  207.  
  208. //=========================
  209.  
  210. //
  211. // holdable item icons
  212. //
  213. icons/teleporter
  214. {
  215.     nopicmip
  216.     {
  217.         map icons/teleporter.tga
  218.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  219.     }
  220. }
  221. icons/medkit
  222. {
  223.     nopicmip
  224.     {
  225.         map icons/medkit.tga
  226.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  227.     }
  228. }
  229. icons/kamikaze
  230. {
  231.     nopicmip
  232.     {
  233.         map icons/kamikaze.tga
  234.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  235.     }
  236. }
  237. icons/portal
  238. {
  239.     nopicmip
  240.     {
  241.         map icons/portal.tga
  242.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  243.     }
  244. }
  245.  
  246. //
  247. // powerup icons
  248. //
  249. icons/envirosuit
  250. {
  251.     nopicmip
  252.     {
  253.         map icons/envirosuit.tga
  254.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  255.     }
  256. }
  257. icons/quad
  258. {
  259.     nopicmip
  260.     {
  261.         map icons/quad.tga
  262.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  263.     }
  264. }
  265. icons/haste
  266. {
  267.     nopicmip
  268.     {
  269.         map icons/haste.tga
  270.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  271.     }
  272. }
  273. icons/invis
  274. {
  275.     nopicmip
  276.     {
  277.         map icons/invis.tga
  278.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  279.     }
  280. }
  281. icons/regen
  282. {
  283.     nopicmip
  284.     {
  285.         map icons/regen.tga
  286.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  287.     }
  288. }
  289. icons/flight
  290. {
  291.     nopicmip
  292.     {
  293.         map icons/flight.tga
  294.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  295.     }
  296. }
  297.  
  298. //
  299. // persistant powerup icons
  300. //
  301. icons/scout
  302. {
  303.     nopicmip
  304.     {
  305.         map icons/scout.tga
  306.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  307.     }
  308. }
  309. icons/guard
  310. {
  311.     nopicmip
  312.     {
  313.         map icons/guard.tga
  314.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  315.     }
  316. }
  317. icons/doubler
  318. {
  319.     nopicmip
  320.     {
  321.         map icons/doubler.tga
  322.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  323.     }
  324. }
  325. icons/radar
  326. {
  327.     nopicmip
  328.     {
  329.         map icons/radar.tga
  330.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  331.     }
  332. }
  333. icons/ammo_regen
  334. {
  335.     nopicmip
  336.     {
  337.         map icons/ammo_regen.tga
  338.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  339.     }
  340. }
  341. icons/invulnerability
  342. {
  343.     nopicmip
  344.     {
  345.         map icons/invulnerability.tga
  346.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  347.     }
  348. }
  349.  
  350.  
  351. // reward medals used in the game floating over client's heads
  352. medal_impressive
  353. {
  354.     nopicmip
  355.     {
  356.         clampmap menu/medals/medal_impressive.tga
  357.         blendFunc blend
  358.     }
  359. }
  360.  
  361. medal_excellent
  362. {
  363.     nopicmip
  364.     {
  365.         clampmap menu/medals/medal_excellent.tga
  366.         blendFunc blend
  367.     }
  368. }
  369.  
  370. medal_gauntlet
  371. {
  372.     nopicmip
  373.     {
  374.         clampmap menu/medals/medal_gauntlet.tga
  375.         blendFunc blend
  376.     }
  377. }
  378.  
  379. medal_assist
  380. {
  381.     nopicmip
  382.     {
  383.         clampmap menu/medals/medal_assist.tga
  384.         blendFunc blend
  385.     }
  386. }
  387.  
  388. medal_defend
  389. {
  390.     nopicmip
  391.     {
  392.         clampmap menu/medals/medal_defend.tga
  393.         blendFunc blend
  394.     }
  395. }
  396.  
  397. medal_capture
  398. {
  399.     nopicmip
  400.     {
  401.         clampmap menu/medals/medal_capture.tga
  402.         blendFunc blend
  403.     }
  404. }
  405.  
  406.  
  407. //
  408. // weapon icons
  409. //
  410. icons/iconw_gauntlet
  411. {
  412.     nopicmip
  413.     {
  414.         map icons/iconw_gauntlet.tga
  415.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  416.     }
  417. }
  418. icons/iconw_machinegun
  419. {
  420.     nopicmip
  421.     {
  422.         map icons/iconw_machinegun.tga
  423.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  424.     }
  425. }
  426. icons/iconw_rocket
  427. {
  428.     nopicmip
  429.     {
  430.         map icons/iconw_rocket.tga
  431.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  432.     }
  433. }
  434.  
  435. icons/iconw_shotgun
  436. {
  437.     nopicmip
  438.     {
  439.         map icons/iconw_shotgun.tga
  440.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  441.         rgbgen identitylighting
  442.     }
  443. }
  444.  
  445. icons/iconw_grenade
  446. {
  447.     nopicmip
  448.     {
  449.         map icons/iconw_grenade.tga
  450.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  451.     }
  452. }
  453.  
  454. icons/iconw_lightning
  455. {
  456.     nopicmip
  457.     {
  458.         map icons/iconw_lightning.tga
  459.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  460.     }
  461. }
  462.  
  463. icons/iconw_plasma
  464. {
  465.     nopicmip
  466.     {
  467.         map icons/iconw_plasma.tga
  468.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  469.     }
  470. }
  471.  
  472. icons/iconw_railgun
  473. {
  474.     nopicmip
  475.     {
  476.         map icons/iconw_railgun.tga
  477.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  478.     }
  479. }
  480.  
  481. icons/iconw_bfg
  482. {
  483.     nopicmip
  484.     {
  485.         map icons/iconw_bfg.tga
  486.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  487.     }
  488. }
  489.  
  490. icons/iconw_grapple
  491. {
  492.     nopicmip
  493.     {
  494.         map icons/iconw_grapple.tga
  495.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  496.     }
  497. }
  498.  
  499. icons/iconw_nailgun
  500. {
  501.     nopicmip
  502.     {
  503.         map icons/nailgun128.tga
  504.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  505.     }
  506. }
  507.  
  508. icons/iconw_chaingun
  509. {
  510.     nopicmip
  511.     {
  512.         map icons/chaingun128.tga
  513.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  514.     }
  515. }
  516.  
  517. icons/iconw_proxlauncher
  518. {
  519.     nopicmip
  520.     {
  521.         map icons/proxmine.tga
  522.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  523.     }
  524. }
  525.  
  526. //
  527. // ammo icons
  528. //
  529. icons/icona_machinegun
  530. {
  531.     nopicmip
  532.     {
  533.         map icons/icona_machinegun.tga
  534.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  535.     }
  536. }
  537. icons/icona_rocket
  538. {
  539.     nopicmip
  540.     {
  541.         map icons/icona_rocket.tga
  542.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  543.     }
  544. }
  545.  
  546. icons/icona_shotgun
  547. {
  548.     nopicmip
  549.     {
  550.         map icons/icona_shotgun.tga
  551.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  552.         rgbgen identitylighting
  553.     }
  554. }
  555.  
  556. icons/icona_grenade
  557. {
  558.     nopicmip
  559.     {
  560.         map icons/icona_grenade.tga
  561.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  562.     }
  563. }
  564.  
  565. icons/icona_lightning
  566. {
  567.     nopicmip
  568.     {
  569.         map icons/icona_lightning.tga
  570.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  571.     }
  572. }
  573.  
  574. icons/icona_plasma
  575. {
  576.     nopicmip
  577.     {
  578.         map icons/icona_plasma.tga
  579.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  580.     }
  581. }
  582.  
  583. icons/icona_railgun
  584. {
  585.     nopicmip
  586.     {
  587.         map icons/icona_railgun.tga
  588.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  589.     }
  590. }
  591.  
  592. icons/icona_bfg
  593. {
  594.     nopicmip
  595.     {
  596.         map icons/icona_bfg.tga
  597.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  598.     }
  599. }
  600.  
  601. icons/icona_nailgun
  602. {
  603.     nopicmip
  604.     {
  605.         map icons/ammo_nailgun.tga
  606.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  607.     }
  608. }
  609.  
  610. icons/icona_chaingun
  611. {
  612.     nopicmip
  613.     {
  614.         map icons/ammo_chaingun.tga
  615.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  616.     }
  617. }
  618.  
  619. icons/icona_proxlauncher
  620. {
  621.     nopicmip
  622.     {
  623.         map icons/ammo_proxmine.tga
  624.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  625.     }
  626. }
  627.  
  628.  
  629. //
  630. // armor icons
  631. //
  632. icons/iconr_shard
  633. {
  634.     nopicmip
  635.     {
  636.         map icons/iconr_shard.tga
  637.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  638.     }
  639. }
  640.  
  641. icons/iconr_yellow
  642. {
  643.     nopicmip
  644.     {
  645.         map icons/iconr_yellow.tga
  646.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  647.     }
  648. }
  649.  
  650. icons/iconr_red
  651. {
  652.     nopicmip
  653.     {
  654.         map icons/iconr_red.tga
  655.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  656.     }
  657. }
  658.  
  659. //
  660. // health icons
  661. //
  662. icons/iconh_green
  663. {
  664.     nopicmip
  665.     {
  666.         map icons/iconh_green.tga
  667.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  668.     }
  669. }
  670.  
  671. icons/iconh_yellow
  672. {
  673.     nopicmip
  674.     {
  675.         map icons/iconh_yellow.tga
  676.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  677.     }
  678. }
  679.  
  680. icons/iconh_red
  681. {
  682.     nopicmip
  683.     {
  684.         map icons/iconh_red.tga
  685.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  686.     }
  687.         //{
  688.     //    clampmap icons/iconh_red2.tga
  689.     //    blendFunc blend
  690.         //        tcMod stretch sin .04 1 0 1
  691.     //}
  692. }
  693.  
  694. icons/iconh_mega
  695. {
  696.     nopicmip
  697.     {
  698.         map icons/iconh_mega.tga
  699.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  700.     }
  701. }
  702.  
  703. //
  704. // CTF icons
  705. //
  706. icons/iconf_red
  707. {
  708.     nopicmip
  709.     {
  710.         map icons/iconf_red.tga
  711.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  712.     }
  713. }
  714.  
  715. icons/iconf_blu
  716. {
  717.     nopicmip
  718.     {
  719.         map icons/iconf_blu.tga
  720.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  721.     }
  722. }
  723.  
  724.  
  725. //===================================================
  726.  
  727. gfx/2d/menuinfo
  728. {
  729.     nopicmip
  730.     {
  731.         map gfx/2d/menuinfo.tga
  732.     }
  733. }
  734.  
  735. gfx/2d/menuinfo2
  736. {
  737.     nopicmip
  738.     {
  739.         map gfx/2d/menuinfo2.tga
  740.     }
  741. }
  742.  
  743. gfx/2d/quit
  744. {
  745.     nopicmip
  746.     nomipmaps
  747.     {
  748.         map gfx/2d/quit.tga
  749.     }
  750. }
  751.  
  752. gfx/2d/cursor
  753. {
  754.     nopicmip
  755.     nomipmaps
  756.     {
  757.         map gfx/2d/cursor.tga
  758.     }
  759. }
  760.  
  761. //==========================================================================
  762.  
  763.  
  764. sprites/balloon3
  765. {
  766.     {
  767.         map sprites/balloon4.tga
  768.         blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  769.     }
  770. }
  771.  
  772. // this is an example of a crossfaded animation cycle
  773. textures/animationTest
  774. {
  775.     qer_editorimage    textures/liquids/bloodwater1.tga
  776.     {
  777.         animMap 0.5 textures/liquids/bloodwater1.tga textures/liquids/pool.tga textures/liquids/slime7.tga
  778.     }    
  779.     {
  780.         animMap 0.5 textures/liquids/pool.tga textures/liquids/slime7.tga textures/liquids/bloodwater1.tga
  781.         blendFunc    GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  782.         alphaGen    wave sawtooth 0 1 0 0.5
  783.     }    
  784.     {
  785.         map $lightmap
  786.         blendFunc GL_DST_COLOR GL_ZERO
  787.     }
  788. }
  789.  
  790. teleportEffect
  791. {
  792.     cull none
  793.     {
  794.         map gfx/misc/teleportEffect2.tga
  795.                 blendFunc GL_ONE GL_ONE
  796.         rgbGen entity
  797.         tcMod scale 1 4
  798.         tcMod scroll 0 2
  799.     }
  800. }
  801.  
  802. // markShadow is the very cheap blurry blob underneat the player
  803. markShadow
  804. {
  805.     polygonOffset
  806.     {
  807.         map gfx/damage/shadow.tga
  808.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  809.         rgbGen exactVertex
  810.     }    
  811. }
  812.  
  813. // projectionShadow is used for cheap squashed model shadows
  814. projectionShadow
  815. {
  816.     polygonOffset
  817.     deformVertexes projectionShadow
  818.     {
  819.         map            *white
  820.         blendFunc GL_ONE GL_ZERO
  821.         rgbGen wave square 0 0 0 0                // just solid black
  822.     }    
  823. }
  824.  
  825.  
  826. // wake is the mark on water surfaces for paddling players
  827. wake
  828. {
  829.     {
  830.         clampmap sprites/splash.tga
  831.         blendFunc GL_ONE GL_ONE
  832.         rgbGen vertex
  833.                 tcmod rotate 250
  834.                 tcMod stretch sin .9 0.1 0 0.7
  835.         rgbGen wave sin .7 .3 .25 .5
  836.     }    
  837.         {
  838.         clampmap sprites/splash.tga
  839.         blendFunc GL_ONE GL_ONE
  840.         rgbGen vertex
  841.                 tcmod rotate -230
  842.                 tcMod stretch sin .9 0.05 0 0.9
  843.         rgbGen wave sin .7 .3 .25 .4
  844.     }    
  845. }
  846.  
  847.  
  848. // viewBloodBlend gives the blended directional cue when you get hit
  849. viewBloodBlend
  850. {
  851.     sort    nearest
  852.     {
  853.         //map models/weaphits/blood201.tga
  854.                 map gfx/damage/blood_screen.tga
  855.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  856.         rgbGen identityLighting
  857.         alphaGen vertex
  858.     }
  859. }
  860.  
  861. waterBubble
  862. {
  863.     sort    underwater
  864.     cull none
  865.     entityMergable        // allow all the sprites to be merged together
  866.     {
  867.         map sprites/bubble.tga
  868.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  869.         rgbGen        vertex
  870.         alphaGen    vertex
  871.     }
  872. }
  873.  
  874. smokePuff
  875. {
  876.     cull none
  877.     entityMergable        // allow all the sprites to be merged together
  878.     {
  879.         map gfx/misc/smokepuff3.tga
  880.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  881.         rgbGen        vertex
  882.         alphaGen    vertex
  883.     }
  884. }
  885.  
  886. hasteSmokePuff            // drops behind player's feet when speeded
  887. {
  888.     cull none
  889.     entityMergable        // allow all the sprites to be merged together
  890.     {
  891.         map gfx/misc/smokepuff3.tga
  892.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  893.                 //blendfunc GL_ONE GL_ONE
  894.         rgbGen        vertex
  895.         alphaGen    vertex
  896.     }
  897. }
  898.  
  899. smokePuffRagePro
  900. {
  901.     cull none
  902.     entityMergable        // allow all the sprites to be merged together
  903.     {
  904.         map gfx/misc/smokepuffragepro.tga
  905.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  906.     }
  907. }
  908.  
  909. shotgunSmokePuff
  910. {
  911.     cull none
  912.     {
  913.         map gfx/misc/smokepuff2b.tga
  914.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  915.         alphaGen entity        
  916.         rgbGen entity
  917.     }
  918. }
  919.  
  920. flareShader
  921. {
  922.     cull none
  923.     {
  924.         map gfx/misc/flare.tga
  925.         blendFunc GL_ONE GL_ONE
  926.         rgbGen vertex
  927.     }
  928. }
  929. sun
  930. {
  931.     cull none
  932.     {
  933.         map gfx/misc/sun.tga
  934.         blendFunc GL_ONE GL_ONE
  935.         rgbGen vertex
  936.     }
  937. }
  938. railDisc
  939. {
  940.     sort nearest
  941.     cull none
  942.         deformVertexes wave 100 sin 0 .5 0 2.4
  943.     {
  944.         clampmap gfx/misc/raildisc_mono2.tga 
  945.         blendFunc GL_ONE GL_ONE
  946.         rgbGen vertex
  947.                  tcMod rotate -30
  948.     }
  949. }
  950.  
  951. railCore
  952. {
  953.     sort nearest
  954.     cull none
  955.     {
  956.         map gfx/misc/railcorethin_mono.tga
  957.         blendFunc GL_ONE GL_ONE
  958.         rgbGen vertex
  959.         tcMod scroll -1 0
  960.     }
  961. }
  962.  
  963. lightningBolt
  964. {
  965.     sort nearest
  966.     cull none
  967.     {
  968.         map gfx/misc/lightning3.tga
  969.         blendFunc GL_ONE GL_ONE
  970. //                rgbgen wave sin 1 5.1 0 7.1
  971.                 rgbgen wave sin 1 0.5 0 7.1
  972.                  tcmod scale  2 1
  973.         tcMod scroll -5 0
  974.     }
  975.     {
  976.         map gfx/misc/lightning3.tga
  977.         blendFunc GL_ONE GL_ONE
  978. //                rgbgen wave sin 1 8.3 0 8.1
  979.                 rgbgen wave sin 1 0.8 0 8.1
  980.                 tcmod scale  -1.3 -1
  981.         tcMod scroll -7.2 0
  982.     }
  983. }
  984.  
  985. // shader used on the occasional machinegun bullet tracers
  986. gfx/misc/tracer
  987. {
  988.     cull none
  989.     {
  990.         map    gfx/misc/tracer2.tga
  991.         blendFunc GL_ONE GL_ONE
  992.     }
  993. }
  994.  
  995. //
  996. // wall marks
  997. // use blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR so that
  998. // their "contribution" can be damped down in fog volumes
  999. // with distance
  1000. bloodMark
  1001. {
  1002.     nopicmip            // make sure a border remains
  1003.     polygonOffset
  1004.     {
  1005.         clampmap gfx/damage/blood_stain.tga
  1006.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1007.         rgbGen identityLighting
  1008.         alphaGen vertex
  1009.     }
  1010. }
  1011.  
  1012. bloodTrail
  1013. {
  1014.         
  1015.     nopicmip            // make sure a border remains
  1016.     entityMergable        // allow all the sprites to be merged together
  1017.     {
  1018.         //clampmap gfx/misc/blood.tga
  1019.                 clampmap gfx/damage/blood_spurt.tga
  1020.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1021.         rgbGen        vertex
  1022.         alphaGen    vertex
  1023.     }
  1024. }
  1025.  
  1026. gfx/damage/bullet_mrk
  1027. {
  1028.     polygonOffset
  1029.     {
  1030.         map gfx/damage/bullet_mrk.tga
  1031.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  1032.         rgbGen exactVertex
  1033.     }
  1034. }
  1035. gfx/damage/burn_med_mrk
  1036. {
  1037.     polygonOffset
  1038.     {
  1039.         map gfx/damage/burn_med_mrk.tga
  1040.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  1041.         rgbGen exactVertex
  1042.     }
  1043. }
  1044. gfx/damage/hole_lg_mrk
  1045. {
  1046.     polygonOffset
  1047.     {
  1048.         map gfx/damage/hole_lg_mrk.tga
  1049.         blendFunc GL_ZERO GL_ONE_MINUS_SRC_COLOR
  1050.         rgbGen exactVertex
  1051.     }
  1052. }
  1053. gfx/damage/plasma_mrk
  1054. {
  1055.     polygonOffset
  1056.     {
  1057.         map gfx/damage/plasma_mrk.tga
  1058.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1059.         rgbGen vertex
  1060.         alphaGen vertex
  1061.     }
  1062. }
  1063.  
  1064.  
  1065. //===============================================================
  1066.  
  1067. // scoreboard header tabs
  1068.  
  1069. scoreboardName
  1070. {
  1071.     nopicmip
  1072.     nomipmaps
  1073.     {
  1074.         clampmap menu/tab/name.tga
  1075.         blendfunc blend
  1076.     }
  1077. }
  1078.  
  1079. scoreboardScore
  1080. {
  1081.     nopicmip
  1082.     nomipmaps
  1083.     {
  1084.         clampmap menu/tab/score.tga
  1085.         blendfunc blend
  1086.     }
  1087. }
  1088.  
  1089. scoreboardTime
  1090. {
  1091.     nopicmip
  1092.     nomipmaps
  1093.     {
  1094.         clampmap menu/tab/time.tga
  1095.         blendfunc blend
  1096.     }
  1097. }
  1098.  
  1099. scoreboardPing
  1100. {
  1101.     nopicmip
  1102.     nomipmaps
  1103.     {
  1104.         clampmap menu/tab/ping.tga
  1105.         blendfunc blend
  1106.     }
  1107. }
  1108.  
  1109. //===============================================================
  1110.  
  1111. gfx/2d/crosshair
  1112. {
  1113.     nopicmip
  1114.     {
  1115.         map gfx/2d/crosshair.tga          
  1116.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA                
  1117.         rgbGen identity
  1118.     }
  1119. }
  1120.  
  1121. gfx/2d/crosshairb
  1122. {
  1123.     nopicmip
  1124.     {
  1125.         map gfx/2d/crosshairb.tga
  1126.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1127.         rgbGen identity
  1128.     }
  1129. }
  1130.  
  1131. gfx/2d/crosshairc
  1132. {
  1133.     nopicmip
  1134.     {
  1135.         map gfx/2d/crosshairc.tga
  1136.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1137.         rgbGen identity
  1138.     }
  1139. }
  1140.  
  1141. gfx/2d/crosshaird
  1142. {
  1143.     nopicmip
  1144.     {
  1145.         map gfx/2d/crosshaird.tga
  1146.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1147.         rgbGen identity
  1148.     }
  1149. }
  1150.  
  1151. gfx/2d/crosshaire
  1152. {
  1153.     nopicmip
  1154.     {
  1155.         map gfx/2d/crosshaire.tga
  1156.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1157.         rgbGen identity
  1158.     }
  1159. }
  1160.  
  1161. gfx/2d/crosshairf
  1162. {
  1163.     nopicmip
  1164.     {
  1165.         map gfx/2d/crosshairf.tga
  1166.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1167.         rgbGen identity
  1168.     }
  1169. }
  1170.  
  1171. gfx/2d/crosshairg
  1172. {
  1173.     nopicmip
  1174.     {
  1175.         map gfx/2d/crosshairg.tga
  1176.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1177.         rgbGen identity
  1178.     }
  1179. }
  1180.  
  1181. gfx/2d/crosshairh
  1182. {
  1183.     nopicmip
  1184.     {
  1185.         map gfx/2d/crosshairh.tga
  1186.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1187.         rgbGen identity
  1188.     }
  1189. }
  1190.  
  1191. gfx/2d/crosshairi
  1192. {
  1193.     nopicmip
  1194.     {
  1195.         map gfx/2d/crosshairi.tga
  1196.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1197.         rgbGen identity
  1198.     }
  1199.  
  1200. }
  1201. gfx/2d/crosshairj
  1202. {
  1203.     nopicmip
  1204.     {
  1205.         map gfx/2d/crosshairj.tga       
  1206.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1207.         rgbGen identity
  1208.     }
  1209. }
  1210. gfx/2d/crosshairk
  1211. {
  1212.     nopicmip
  1213.     {
  1214.         map gfx/2d/crosshairk.tga       
  1215.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1216.         rgbGen identity
  1217.     }
  1218. }
  1219.  
  1220.  
  1221.  
  1222.  
  1223. gfx/2d/bigchars
  1224. {
  1225.     nopicmip
  1226.     nomipmaps
  1227.     {
  1228.         map gfx/2d/bigchars.tga
  1229.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1230.         rgbgen vertex
  1231.     }
  1232. }
  1233. gfx/2d/select
  1234. {
  1235.     nopicmip
  1236.     {
  1237.         map gfx/2d/select.tga
  1238.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1239.         rgbGen identity
  1240.         rgbgen vertex
  1241.     }
  1242. }
  1243.  
  1244.  
  1245. gfx/2d/assault1d
  1246. {
  1247.     nopicmip
  1248.     {
  1249.         map gfx/2d/assault1d.tga
  1250.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1251.     }
  1252. }
  1253. gfx/2d/armor1h
  1254. {
  1255.     nopicmip
  1256.     {
  1257.         map gfx/2d/armor1h.tga
  1258.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1259.     }
  1260. }
  1261. gfx/2d/health
  1262. {
  1263.     nopicmip
  1264.     {
  1265.         map gfx/2d/health.tga
  1266.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1267.     }
  1268. }
  1269. gfx/2d/blank
  1270. {
  1271.     nopicmip
  1272.     {
  1273.         map gfx/2d/blank.tga
  1274.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1275.     }
  1276. }
  1277. gfx/2d/numbers/zero_32b
  1278. {
  1279.     nopicmip
  1280.     {
  1281.         map gfx/2d/numbers/zero_32b.tga
  1282.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1283.         rgbgen vertex
  1284.     }
  1285. }
  1286. gfx/2d/numbers/one_32b
  1287. {
  1288.     nopicmip
  1289.     {
  1290.         map gfx/2d/numbers/one_32b.tga
  1291.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1292.         rgbgen vertex
  1293.     }
  1294. }
  1295. gfx/2d/numbers/two_32b
  1296. {
  1297.     nopicmip
  1298.     {
  1299.         map gfx/2d/numbers/two_32b.tga
  1300.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1301.         rgbgen vertex
  1302.     }
  1303. }
  1304. gfx/2d/numbers/three_32b
  1305. {
  1306.     nopicmip
  1307.     {
  1308.         map gfx/2d/numbers/three_32b.tga
  1309.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1310.         rgbgen vertex
  1311.     }
  1312. }
  1313. gfx/2d/numbers/four_32b
  1314. {
  1315.     nopicmip
  1316.     {
  1317.         map gfx/2d/numbers/four_32b.tga
  1318.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1319.         rgbgen vertex
  1320.     }
  1321. }
  1322. gfx/2d/numbers/five_32b
  1323. {
  1324.     nopicmip
  1325.     {
  1326.         map gfx/2d/numbers/five_32b.tga
  1327.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1328.         rgbgen vertex
  1329.     }
  1330. }
  1331. gfx/2d/numbers/six_32b
  1332. {
  1333.     nopicmip
  1334.     {
  1335.         map gfx/2d/numbers/six_32b.tga
  1336.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1337.         rgbgen vertex
  1338.     }
  1339. }
  1340. gfx/2d/numbers/seven_32b
  1341. {
  1342.     nopicmip
  1343.     {
  1344.         map gfx/2d/numbers/seven_32b.tga
  1345.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1346.         rgbgen vertex
  1347.     }
  1348. }
  1349. gfx/2d/numbers/eight_32b
  1350. {
  1351.     nopicmip
  1352.     {
  1353.         map gfx/2d/numbers/eight_32b.tga
  1354.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1355.         rgbgen vertex
  1356.     }
  1357. }
  1358. gfx/2d/numbers/nine_32b
  1359. {
  1360.     nopicmip
  1361.     {
  1362.         map gfx/2d/numbers/nine_32b.tga
  1363.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1364.         rgbgen vertex
  1365.     }
  1366. }
  1367. gfx/2d/numbers/minus_32b
  1368. {
  1369.     nopicmip
  1370.     {
  1371.         map gfx/2d/numbers/minus_32b.tga
  1372.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  1373.         rgbgen vertex
  1374.     }
  1375. }
  1376.  
  1377.  
  1378. //
  1379. // weapon hits
  1380. // All of these will be put on entities with a shaderTime offset, so they
  1381. // can be expected to start at time 0 for each separate explosion
  1382. //
  1383. // Many of these are use smoothly morphed animating textures by pairing
  1384. // sawtooth and iverse sawtooth rgbGens
  1385. plasmaExplosion
  1386. {
  1387.     cull disable
  1388.     {
  1389.         clampmap models/weaphits/plasmaboom.tga
  1390.         blendfunc add
  1391.                 tcMod stretch triangle .6 0.1 0 8
  1392.                 tcmod rotate 999
  1393.                 rgbGen wave inversesawtooth 0 1 0 1.5
  1394.     }
  1395. }
  1396.  
  1397. railExplosion
  1398. {
  1399.     cull disable
  1400.       {
  1401.         animmap 5 models/weaphits/ring02_1.tga  models/weaphits/ring02_2.tga  models/weaphits/ring02_3.tga models/weaphits/ring02_4.tga gfx/colors/black.tga
  1402.         alphaGen wave inversesawtooth 0 1 0 5
  1403.         blendfunc blend
  1404.     }
  1405.     {
  1406.         animmap 5 models/weaphits/ring02_2.tga  models/weaphits/ring02_3.tga models/weaphits/ring02_4.tga gfx/colors/black.tga gfx/colors/black.tga
  1407.         alphaGen wave sawtooth 0 1 0 5
  1408.         blendfunc blend
  1409.     }
  1410. }
  1411.  
  1412. lightningExplosion
  1413. {
  1414.     cull disable
  1415.     {
  1416.         animmap 5 models/weaphits/ring02_1.tga  models/weaphits/ring02_3.tga  models/weaphits/ring02_3.tga gfx/colors/black.tga
  1417.         rgbGen wave inversesawtooth 0 1 0 5
  1418.         blendfunc add
  1419.     }
  1420.     {
  1421.         animmap 5 models/weaphits/ring02_2.tga  models/weaphits/ring02_3.tga  gfx/colors/black.tga gfx/colors/black.tga
  1422.         rgbGen wave sawtooth 0 1 0 5
  1423.         blendfunc add
  1424.     }
  1425. }
  1426.  
  1427. bulletExplosion
  1428. {
  1429.     cull disable
  1430.     {
  1431.         animmap 5 models/weaphits/bullet1.tga  models/weaphits/bullet2.tga  models/weaphits/bullet3.tga gfx/colors/black.tga
  1432.         rgbGen wave inversesawtooth 0 1 0 5
  1433.         blendfunc add
  1434.     }
  1435.     {
  1436.         animmap 5 models/weaphits/bullet2.tga  models/weaphits/bullet3.tga  gfx/colors/black.tga gfx/colors/black.tga
  1437.         rgbGen wave sawtooth 0 1 0 5
  1438.         blendfunc add
  1439.     }
  1440. }
  1441.  
  1442. rocketExplosion
  1443. {
  1444.     cull disable
  1445.     {
  1446.         animmap 8 models/weaphits/rlboom/rlboom_1.tga  models/weaphits/rlboom/rlboom_2.tga models/weaphits/rlboom/rlboom_3.tga models/weaphits/rlboom/rlboom_4.tga models/weaphits/rlboom/rlboom_5.tga models/weaphits/rlboom/rlboom_6.tga models/weaphits/rlboom/rlboom_7.tga models/weaphits/rlboom/rlboom_8.tga
  1447.         rgbGen wave inversesawtooth 0 1 0 8
  1448.         blendfunc add
  1449.     }
  1450.     {
  1451.         animmap 8 models/weaphits/rlboom/rlboom_2.tga models/weaphits/rlboom/rlboom_3.tga models/weaphits/rlboom/rlboom_4.tga models/weaphits/rlboom/rlboom_5.tga models/weaphits/rlboom/rlboom_6.tga models/weaphits/rlboom/rlboom_7.tga models/weaphits/rlboom/rlboom_8.tga gfx/colors/black.tga
  1452.         rgbGen wave sawtooth 0 1 0 8
  1453.         blendfunc add
  1454.     }
  1455. }
  1456.  
  1457. grenadeExplosion
  1458. {
  1459.     cull disable
  1460.     {
  1461.         animmap 5 models/weaphits/glboom/glboom_1.tga  models/weaphits/glboom/glboom_2.tga models/weaphits/glboom/glboom_3.tga
  1462.         rgbGen wave inversesawtooth 0 1 0 5
  1463.         blendfunc add
  1464.     }
  1465.     {
  1466.         animmap 5 models/weaphits/glboom/glboom_2.tga  models/weaphits/glboom/glboom_3.tga gfx/colors/black.tga
  1467.         rgbGen wave sawtooth 0 1 0 5
  1468.         blendfunc add
  1469.     }
  1470. }
  1471.  
  1472. bfgExplosion
  1473. {
  1474.     cull disable
  1475.     {
  1476.         animmap 5 models/weaphits/bfgboom/bfgboom_1.tga  models/weaphits/bfgboom/bfgboom_2.tga models/weaphits/bfgboom/bfgboom_3.tga
  1477.         rgbGen wave inversesawtooth 0 1 0 5
  1478.         blendfunc add
  1479.     }
  1480.     {
  1481.         animmap 5 models/weaphits/bfgboom/bfgboom_2.tga models/weaphits/bfgboom/bfgboom_3.tga gfx/colors/black.tga
  1482.         rgbGen wave sawtooth 0 1 0 5
  1483.         blendfunc add
  1484.     }
  1485. }
  1486.  
  1487. bloodExplosion        // spurt of blood at point of impact
  1488. {
  1489.     cull disable
  1490.     {
  1491.         animmap 5 models/weaphits/blood201.tga models/weaphits/blood202.tga models/weaphits/blood203.tga models/weaphits/blood204.tga models/weaphits/blood205.tga
  1492.         blendfunc blend
  1493.     }
  1494. }
  1495.  
  1496.  
  1497.  
  1498.